print("100000 100000 10000")
for i in range(0, 10000):
    if i % 2 == 0:
        print("0 %d %d 10" % ((10000 - i) * 10, i * 100000))
    else:
        print("%d %d %d 10" % (i * 10, (10000 - i) * 10, i * 100000))
